package cn.tianyigps.m7.netty;

import cn.tianyigps.m7.netty.TYChannelPipeline;
import io.netty.channel.Channel;
import io.netty.channel.DefaultChannelPipeline;
import io.netty.channel.socket.nio.NioSocketChannel;

import java.nio.channels.SocketChannel;

/**
 * Created with IDEA
 *
 * @description: 自定义NioSocketChannel
 * @author: cui.guibin
 * @create: 2019/3/6 14:34
 **/
public class TYNioSocketChannel extends NioSocketChannel {

    public TYNioSocketChannel(Channel parent, SocketChannel socket) {
        super(parent, socket);
    }

    /**
     * @param:
     * @return DefaultChannelPipeline
     * @author cui.guibin
     * @date 2019/3/7 10:34
     *
     * 自定义 pipeline 管道
     */
    @Override
    protected DefaultChannelPipeline newChannelPipeline() {
        return new TYChannelPipeline(this);
    }



}
